#ifndef PARSEDCM_H
#define PARSEDCM_H

#include <QObject>

class ParseDcm : public QObject
{
    Q_OBJECT
public:
    explicit ParseDcm(QObject *parent = 0);
    ~ParseDcm();

signals:

public slots:
    void fetchFile();

    void onFileRemoved(const QString &file);
    void onFileRenamed(const QString &oldName, const QString &newName);

private:
    void parseDcm(const QString &dcm);
    void openDb();
    bool isDcmInDb(const QString &dcm);
    bool isStudyInDb(const QString &uid);
    bool isImageInDb(const QString &uid, bool &noFile);
};

#endif // PARSEDCM_H
